package jdklearning.util.function;


import java.util.function.Supplier;

/**
 * @author shenenlu 2021年03月08日 下午14:03:40
 */
public class SupplierLearning {



    public static void main(String[] args) {
        Supplier<Integer>  supplier1 = ()->{
            try {
                Thread.sleep(1000);
            } catch (InterruptedException e) {
                e.printStackTrace();
            }
            return 1;
        };

        int integer = supplier1.get();
        System.out.println(integer);
    }
}
